#include<bits/stdc++.h>
using namespace std;
const int N = 10001;

void guibing(float arr[], int s, int e) {
  if (s == e) return;
  int mid = (s + e) >> 1;
  guibing(arr, s, mid);
  guibing(arr, mid + 1, e);
  int i, j, cnt;
  float temp[N];
  i = s;
  j = mid + 1;
  cnt = s;
  while (i <= mid && j <= e) {
    if (arr[i] <= arr[j]) {
      temp[cnt++] = arr[i++];
    }
    else {
      temp[cnt++] = arr[j++];
    }
  }
  while (i <= mid) {
    temp[cnt++] = arr[i++];
  }
  while (j <= e) {
    temp[cnt++] = arr[j++];
  }
  for (i = s; i <= e; i++) {
    arr[i] = temp[i];
  }
}

int main() {
  float arr[N];
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  guibing(arr, 1, n);
  for (int i = 1; i <= n; i++) {
    if (i > 1) cout << " ";
    cout << arr[i];
  }

  return 0;
}